package com.imooc.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by ancy on 2017/7/22.
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Demo {

    private int id;

    private  String name;

    /**
     *  serialize 设置为false 时候  ----->  是否需要序列化属性
     */
    @JSONField(serialize = false)
    private String remarks = "需要隐藏的属性数据";


    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date createTime;
}
